import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages';

export default defineUniPages({
  globalStyle: {
    // 导航栏字体颜色
    navigationBarTextStyle: '@navTxtStyle',
    // 导航栏背景色
    navigationBarBackgroundColor: '@navBgColor',
    // 导航栏背景底色
    backgroundColor: '@bgColor'
  },
  easycom: {
    autoscan: true,
    custom: {
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
      "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
      "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue"
    }
  },
  tabBar: {
    color: '#999999',
    selectedColor: '#5474f2',
    backgroundColor: '#ffffff',
    custom: true,
    borderStyle: 'black',
    height: '0px',
    fontSize: '0px',
    iconWidth: '0px',
    spacing: '3px',
    list: [
      {
        iconPath: '/static/tabBar/home_default.png',
        selectedIconPath: '/static/tabBar/home_active.png',
        pagePath: 'pages/index/index',
        text: '首页'
      },
      {
        iconPath: '/static/tabBar/my_default.png',
        selectedIconPath: '/static/tabBar/my_active.png',
        pagePath: 'pages/my/index',
        text: '我的'
      }
    ]
  }
});
